package com.aoyy.model;

import java.util.Set;
import java.util.Date;
/**===================================================================================
 * PO class <code>Topic</code>
 * @author this author
 * @date 2017-08-05
 * ==================================================================================== */
public class Topic extends SerializableImpl {
	private static final long serialVersionUID = 4017336960741404205L;
	private Integer topicId;
	private String title;
	private String content;
	private Date createTime;
	private Integer views;
	private Integer digest;
	private Board board;
	private User user;
	private Set<Post> posts;
	
	public void setTopicId(Integer topicId) {
		this.topicId = topicId;
	}
	
	public Integer getTopicId() {
		return topicId;
	}
    
	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getTitle() {
		return title;
	}
	
	public void setContent(String content) {
		this.content = content;
	}
	
	public String getContent() {
		return content;
	}
	
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public Date getCreateTime() {
		return createTime;
	}
	
	public void setViews(Integer views) {
		this.views = views;
	}
	
	public Integer getViews() {
		return views;
	}
	
	public void setDigest(Integer digest) {
		this.digest = digest;
	}
	
	public Integer getDigest() {
		return digest;
	}
	
	public void setBoard(Board board) {
		this.board = board;
	}
	
	public Board getBoard() {
		return board;
	}
	
	public void setUser(User user) {
		this.user = user;
	}
	
	public User getUser() {
		return user;
	}
	
	public void setPosts(Set<Post> posts) {
		this.posts = posts;
	}
	
	public Set<Post> getPosts() {
		return posts;
	}

}
